﻿package com.tudou.utils
{

    public class VideoType extends Object
    {
        public static const F4V:String = "F4V";
        public static const M4V:String = "M4V";
        public static const FLV:String = "FLV";
        public static const MP4:String = "MP4";
        public static const UNKOWN:String = "UNKOWN";
        public static const MP3:String = "MP3";

        public function VideoType()
        {
            return;
        }// end function

        public static function getType(param1:String) : String
        {
            var _loc_2:* = UNKOWN;
            var _loc_3:* = /\.(flv|f4v|m4v|mp4|mp3)""\.(flv|f4v|m4v|mp4|mp3)/i;
            var _loc_4:* = _loc_3.exec(param1);
            if (_loc_3.exec(param1))
            {
                _loc_2 = _loc_4[1];
            }
            return _loc_2.toUpperCase();
        }// end function

    }
}
